module Admin::TrafficsHelper
  include TrafficConvert
  def set_active_nav active_nav
    @active_nav = active_nav
  end
  def active_nav current_nav
    @active_nav == current_nav ? ' class="active"'.html_safe : ""
  end
  def add_group_by_params group_by
    params[:stat][:group_by] = group_by
    params
  end
end
